home *** CD-ROM | disk | FTP | other *** search
-
-
-
- aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrtttt((((3333ddddmmmm)))) aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrtttt((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- afSetLoopStart, afSetLoopEnd, afSetLoopMode, afSetLoopTrack - set the
- start/end markers, play mode, and track in an AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee structure for
- a specified loop.
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiiooooffffiiiilllleeee....hhhh>>>>
-
- vvvvooooiiiidddd aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrtttt((((AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee ffffiiiilllleeee,,,, iiiinnnntttt iiiinnnnssssttttiiiidddd,,,,
- iiiinnnntttt llllooooooooppppiiiidddd,,,, iiiinnnntttt mmmmaaaarrrrkkkkiiiidddd))))
-
- vvvvooooiiiidddd aaaaffffSSSSeeeettttLLLLooooooooppppEEEEnnnndddd((((AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee ffffiiiilllleeee,,,, iiiinnnntttt iiiinnnnssssttttiiiidddd,,,,
- iiiinnnntttt llllooooooooppppiiiidddd,,,, iiiinnnntttt mmmmaaaarrrrkkkkiiiidddd))))
-
- vvvvooooiiiidddd aaaaffffSSSSeeeettttLLLLooooooooppppTTTTrrrraaaacccckkkk((((AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee ffffiiiilllleeee,,,, iiiinnnntttt iiiinnnnssssttttiiiidddd,,,,
- iiiinnnntttt llllooooooooppppiiiidddd,,,, iiiinnnntttt ttttrrrraaaacccckkkkiiiidddd))))
-
- vvvvooooiiiidddd aaaaffffSSSSeeeettttLLLLooooooooppppMMMMooooddddeeee((((AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee ffffiiiilllleeee,,,, iiiinnnntttt iiiinnnnssssttttiiiidddd,,,,
- iiiinnnntttt llllooooooooppppiiiidddd,,,, iiiinnnntttt mmmmooooddddeeee))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
- _s_e_t_u_p is an AAAAFFFFffffiiiilllleeeehhhhaaaannnnddddlllleeee structure, previously created by a call to
- aaaaffffOOOOppppeeeennnnFFFFiiiilllleeee(3dm) or aaaaffffOOOOppppeeeennnnFFFFDDDD(3dm), which opened an audio file
- for write access.
-
- _i_n_s_t_i_d is a positive integer value which identifies a chunk of
- instrument parameters. Since the number of supported inst
- chunks varies with file format, applications should always
- retrieve this value via afGetInstIDs(3dm).
-
- _l_o_o_p_i_d is a positive integer value which identifies a loop stored in
- the instrument configuration given by _i_n_s_t_i_d.
-
- _m_a_r_k_i_d is a positive integer marker value which identifies a marker
- associated with the track given by _t_r_a_c_k_i_d.
-
- The start and end sample frames of a loop are indicated by
- marker positions stored in marker structures.
-
- _t_r_a_c_k_i_d is a positive integer ID indicating which audio track in _f_i_l_e
- will contain the specified loop.
-
- Since all currently supported audio file formats contain a
- single audio track per file, the constant value
- AAAAFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____TTTTRRRRAAAACCCCKKKK should always be used here for now.
-
- _m_o_d_e is a constant integer indicates the play mode for the loop.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- These routines allow you to specify loops in an audio track. Each takes
- a _l_o_o_p_i_d argument which provides a handle to a loop structure.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrtttt((((3333ddddmmmm)))) aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrtttt((((3333ddddmmmm))))
-
-
-
- In an AIFF-C (or AIFF) file, the instrument chunk, denoted by integer
- constant AAAAFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____IIIINNNNSSSSTTTT, contains two loops - a "sustain" loop and a
- "release" loop.
-
- You can obtain loop ID's for the two loops by calling aaaaffffGGGGeeeettttLLLLooooooooppppIIIIDDDDssss(3dm)
- after you've opened an audio file, or you can supply your own loop ID's
- by calling aaaaffffIIIInnnniiiittttLLLLooooooooppppIIIIDDDDssss(3dm) before the file is opened.
-
- For AIFF and AIFF-C files you map your loop ID list to the
- sustain/release loops for the default instrument by calling
- aaaaffffSSSSeeeettttIIIInnnnssssttttPPPPaaaarrrraaaammmmLLLLoooonnnngggg(3dm).
-
- The start and end sample frames for a loop are indicated by marker
- structures. An AIFF-C (or AIFF) track may contain one or more marker
- structures. A marker structure stores a location in an audio track.
-
- To store two loops, you typically need four markers, two for each loop.
- See the man page for afSetMarkPosition(3dm) for information about how you
- assign a marker to a specific location in an audio track.
-
- aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrtttt(((()))) set the start frame marker for a given loop in the
- specified audio track. aaaaffffSSSSeeeettttLLLLooooooooppppEEEEnnnndddd sets the end frame marker for a
- loop. The loop is specified by the value of _l_o_o_p_i_d, a loop identifier
- which was previously configured into the audio track by a call to
- aaaaffffIIIInnnniiiittttLLLLooooooooppppIIIIDDDDssss(((()))).
-
- aaaaffffSSSSeeeettttLLLLooooooooppppTTTTrrrraaaacccckkkk(((()))) is a placeholder routine which specifies an audio track
- in a file for a loop. Since an AIFF-C (AIFF) file always contain one
- audio track, the loops automatically map to AAAAFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____TTTTRRRRAAAACCCCKKKK.
-
- aaaaffffSSSSeeeettttLLLLooooooooppppMMMMooooddddeeee(((()))) sets the play mode for a loop. The following modes are
- supported:
-
- AF_LOOP_MODE_NOLOOP causes the loop to be ignored
- AF_LOOP_MODE_FORW forward loop
- AF_LOOP_MODE_FORWBAKW forward/backward loop
-
-
- NNNNOOOOTTTTEEEESSSS
- It is now possible to set the loop start and end frame directly without
- using the associated markers (see aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrttttFFFFrrrraaaammmmeeee(3dm)). This is
- useful and necessary for audio file formats which support loops which are
- independent of any markers, and for formats which support loops but which
- do not support markers at all. For formats which always associate loops
- and markers, such as AAAAIIIIFFFFFFFF(4) and WWWWAAAAVVVVEEEE(4), aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrtttt(((()))) must be used
- or the file update will fail.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- afNewFileSetup(3dm), afOpenFile(3dm), afInitLoopIDs(3dm),
- afGetLoopIDs(3dm), afInitMarkIDs(3dm), afSetMarkPosition(3dm)
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-